//
//  TMGCompanyBackController.m
//  TMGold
//
//  Created by Mac on 2017/12/13.
//  Copyright © 2017年 tangmu. All rights reserved.
//

#import "TMGCompanyBackController.h"

@interface TMGCompanyBackController ()

@end

@implementation TMGCompanyBackController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"投资背景";
    [self configSubView];
    // Do any additional setup after loading the view.
}

#pragma mark --subView
- (void)configSubView{
    UIView * header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UIScreenWidth, 100)];
    header.backgroundColor = self.tableView.backgroundColor;
    
    UIImageView * bannerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, UIScreenWidth, 204)];
    bannerImageView.image = [UIImage imageNamed:@"touZiBeijing"];
    bannerImageView.userInteractionEnabled = YES;
    [header addSubview:bannerImageView];
    NSString * title = @"        口袋以产业链金融产品为核心业务，以致力于为小微企业解决融资瓶颈为根本目标，旨在为投资者和融资者之间搭建资金对劲，项目合作的共赢平台。作为许多投资者首选平台，微邦通过大数据化的分析和流程化的风控手段，为广大用户提供安全且具有稳定收益的中短期投资产品。同时采取引入第三方担保公司的方式，从而为投资者提供无后顾之忧的保障。";
    STLabel * titleLable = [[STLabel alloc] initWithFrame:CGRectMake(15, 15  + bannerImageView.bottom, UIScreenWidth - 30, 10)
                                                     text:title
                                                textColor:TM_secendTextColor
                                                     font:15
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentLeft];
    [header addSubview:titleLable];
    [NSString lableAutoAdjustheightWithLabel:titleLable];
    header.height = titleLable.bottom  +20;
    self.tableView.tableHeaderView = header;
}


@end
